package com.example.demo.create.builder;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.ToString;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/20
 * @Version V1.0
 */
@Builder
@ToString
@AllArgsConstructor
public class User {

    private String name;
    private int age;
    private String gender;

    public static void main(String[] args) {
        User user = User.builder().name("LH").age(28).gender("female").build();
        System.out.println(user);
    }

}
